//go:build !windows
// +build !windows

package ysos

import "github.com/gogf/gf/v2/os/gproc"
import "context"

// OpenDir 未实现
func OpenDir(path string) {
}

// CheckProcessByName 未实现
func CheckProcessByName(name string) bool {
	return true
}

// KillProcessByName 未实现
func KillProcessByName(name string) bool {
	return true
}

// GetGitBashPath 未实现
func GetGitBashPath(ctx context.Context) string {
	return ""
}

func FindShExePath(ctx context.Context) string {
	return ""

}
func RunShellFile(ctx context.Context, filePath string) error {
	return nil
}

func HasCmd(ctx context.Context, cmd string) bool {
	_, err := gproc.ShellExec(ctx, "which "+cmd)
	if err != nil {
		return false
	}
	return true
}
